﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EKETEAM.FrameWork;
using EKETEAM.Data;

namespace EKECMS.Phone
{
    public partial class Product : System.Web.UI.Page
    {
        public string nr = "";
        public eSiteInfo siteinfo = new eSiteInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            Pub.checkPhone(); //不是手机、ipod 访问则跳转到PC版

            #region 安全性检查
            if (Request.QueryString["id"] == null) Response.Redirect("Default.aspx", true);
            string id = Request.QueryString["id"].ToString();
            #endregion
            ((EKECMS.Master.Phone)Master).SiteInfo = siteinfo;
            nr = Pub.getContent(siteinfo.Data["sm"].ToString());
            eBase.DataBase.Execute("update eWeb_Products set ckcs=ckcs+1 where ProductID=" + id);
        }
    }
}